<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PerspectivaEditDlg" widgetVar="PerspectivaEditDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.EditPerspectivaTitle}">
            <h:form id="PerspectivaEditForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{perspectivaController.selected != null}">
                        <p:outputLabel value="#{bundle.EditPerspectivaLabel_idperspectiva}" for="idperspectiva" />
                        <p:inputText id="idperspectiva" value="#{perspectivaController.selected.idperspectiva}" title="#{bundle.EditPerspectivaTitle_idperspectiva}" required="true" requiredMessage="#{bundle.EditPerspectivaRequiredMessage_idperspectiva}"/>
                        <p:outputLabel value="#{bundle.EditPerspectivaLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{perspectivaController.selected.nombre}" title="#{bundle.EditPerspectivaTitle_nombre}" required="true" requiredMessage="#{bundle.EditPerspectivaRequiredMessage_nombre}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{perspectivaController.update}" value="#{bundle.Save}" update="display,:PerspectivaListForm:datalist,:growl" oncomplete="handleSubmit(args, 'PerspectivaEditDialog');"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="PerspectivaEditDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
